package cn.cloudplug.friendsrecommend.fragment;

import cn.cloudplug.friendsrecommend.R;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

/**
 * A simple {@link android.support.v4.app.Fragment} subclass.
 * 
 */
public class GuideItemFragment extends Fragment {

	public GuideItemFragment() {
	}
    private int resId;
    public void setImageId(int resId){
    	this.resId=resId;
    }
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View view=inflater.inflate(R.layout.fragment_guide_item, container, false);
	    ImageView imgView=(ImageView)view.findViewById(R.id.guidImageView);
	    imgView.setImageResource(resId);
	    return view;
	}

}
